__author__ = 'y.starynets'
#http://codingbat.com/prob/p162058

def pos_neg(a, b, negative):
    if a > 0 and b > 0 and negative is False:
        return False
    elif a < 0 and b < 0 and negative is True:
        return True
    elif a < 0 or b < 0 and negative is False:
        return False
    elif a < 0 or b < 0 and negative is True:
        return True
    elif a < 0 and b > 0 and negative is False:
        return True
    elif a > 0 and b < 0 and negative is False:
        return True